Spark struct¶
Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]
Defined in
Namespace: ReactiveUI.Primitives.Reactive.Core
Assembly: ReactiveUI.Primitives.Reactive.dll
Full name: ReactiveUI.Primitives.Reactive.Core.Spark<T>
Modifiers: public sealed
Summary¶
Represents a spark to an observer. This is a by-value type: materializing a sequence allocates
no per-notification heap object, mirroring the value-type notification used by other modern
reactive libraries.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Class hierarchy
classDiagram
class Spark~T~
class IEquatable~Spark~T~~ {
<>
}
IEquatable~Spark~T~~ <|.. Spark~T~
Implements: IEquatable
Properties¶
| Name | Summary |
|---|---|
| Value | Gets the value carried by an OnNext spark, or the default value for OnError and OnCompleted sparks. Check [HasValue](# (or... |
| HasValue | Gets a value indicating whether the spark carries a value. |
| Exception | Gets the exception of an OnError spark or returns null. |
| Kind | Gets the kind of Spark that is represented. |
Methods¶
| Name | Summary |
|---|---|
| Equals | Determines whether the current Spark |
| GetHashCode | Returns the hash code for this spark. |
| ToString | Returns a string representation of this spark. |
| Accept | Invokes the observer's method corresponding to the Spark. |
| ToObservable | Returns an observable sequence with a single Spark, using the immediate scheduler. |
Operators¶
| Name | Summary |
|---|---|
| static op_Inequality | |
| static op_Equality |